package model.Actions;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import DB.Connection.DBConnectionManager;

import commons.Entities.LegenCharacter;

public class addNewCharacterToDBAction implements Runnable {

	private static final Log logger = LogFactory.getLog(addNewCharacterToDBAction.class);

	private LegenCharacter legenCharacter;

	public addNewCharacterToDBAction(LegenCharacter legenCharacter) {
		this.legenCharacter = legenCharacter;
	}

	@Override
	public void run() {
		logger.info("addNewCharacterToDBAction starting...");

		DBConnectionManager.get().insertToCharacterTable(legenCharacter);

		logger.info("addNewCharacterToDBAction ended.");
	}
}
